package com.hfkf.javaoop;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class UserControl {
    String name;
    int password;


    public void enter(){
        for (int i = 0; i < 4; i++) {
            if (name.equals("admin")&&password==123456){
                System.out.println("请输入新密码：");
                break;
            }
            else if (!name.equals("admin")&&password!=123456){
                System.out.println("权限不够！");
                break;
            }
            else {
                break;
            }
        }
    }
}
